package cn.frank.web;

import cn.frank.domain.oracle.UCML_Organize;
import cn.frank.service.oracle.IOrganizeService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.HashMap;
import java.util.List;
import java.util.Map;

/**
 * @author Frank
 * @date 06-01
 */
@RestController
@RequestMapping("/dzwz/organize")
public class OrganizeController {

    @Autowired
    private IOrganizeService organizeService;

    @GetMapping("/selectRegions")
    public Map<String,Object> showRefreshTotal(){
        Map<String, Object> dayDybd = new HashMap<>();
        List<UCML_Organize> list = organizeService.findRegionOrganizes();
        System.out.println(list);
        dayDybd.put("data",list);
        dayDybd.put("code","200");
        dayDybd.put("msg","success");
        return dayDybd;
    }
}
